package com.cloud.pole.shop.service.goods.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.pole.common.util.jwt.IJWTInfo;
import com.cloud.pole.common.util.jwt.JwtTokenUtil;
import com.cloud.pole.shop.biz.goods.ShopGoodsModelAttrValueBiz;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsModelAttrValue;
import com.cloud.pole.shop.service.goods.GoodsModelAttrValueService;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Service
public class GoodsModelAttrValueServiceImpl implements GoodsModelAttrValueService{

	@Autowired
	ShopGoodsModelAttrValueBiz ShopGoodsModelAttrValueBiz;

	@Override
	public List<ShopGoodsModelAttrValue> selectByList(Integer modelAttrId, Integer shopId) throws Exception {
		
		return ShopGoodsModelAttrValueBiz.selectByConditionList(modelAttrId, shopId);
	}

	@Override
	public void addGoodsModelVal(ShopGoodsModelAttrValue shopGoodsModelAttrValue) throws Exception {
		ShopGoodsModelAttrValueBiz.add(shopGoodsModelAttrValue);
	}

	@Override
	public List<ShopGoodsModelAttrValue> selectByName(List<String> attrValueNameS,Integer shopId) throws Exception {
		
		return ShopGoodsModelAttrValueBiz.selectByToName(attrValueNameS,shopId);
	}

	@Override
	public ShopGoodsModelAttrValue selectBy(String attrValueName,Integer modelAttrId,Integer shopId) throws Exception {
		return ShopGoodsModelAttrValueBiz.selectByToAttrValueName(attrValueName,modelAttrId,shopId);
	}
	
	

}
